{subtemplate common/header}
<div id="pt" class="wp"><a href="forum.php">$_G['setting']['bbname']</a> &rsaquo; <!--{if $_G['uid'] == $member['uid']}-->{lang space_profile}<!--{else}-->$member[username]{lang space_sprofile}<!--{/if}--></div>

<script type="text/javascript">var imagemaxwidth = '{IMAGEMAXWIDTH}';</script>

<div id="ct" class="wp cl">
	<div class="mn">
		<div id="profilecontent" class="content">
			<div class="itemtitle s_clear">
				<h1>$member[username]<!--{if $member[online]}--> <img src="{IMGDIR}/online_buddy.gif" title="{lang online}" class="online_buddy" /><!--{/if}--></h1>
				<ul>
					<li>({lang uid}: $member[uid])</li>
				</ul>
			</div>
			{hook/profile_baseinfo_top}
			<div id="baseprofile">
				<table cellpadding="0" cellpadding="0" class="formtable" style="table-layout:fixed">
					<!--{if $member['allownickname'] && $member['nickname']}-->
					<tr>
						<th>{lang nickname}:</th>
						<td>$member[nickname]</td>
					</tr>
					<!--{/if}-->
					<tr>
						<th width="70">{lang gender}:</th>
						<td>
							<!--{if $member['gender'] == 1}-->{lang male}<!--{elseif $member['gender'] == 2}-->{lang female}<!--{else}-->{lang secret}<!--{/if}-->
						</td>
					</tr>

					<!--{if $member[location]}-->
					<tr>
						<th width="70">{lang location}:</th>
						<td>
						 $member[location]
						</td>
					</tr>
					<!--{/if}-->

					<!--{if $member[bday] != '00-00'}-->
					<tr>
						<th width="70">{lang birthday}:</th>
						<td>
						$member[bday]
						</td>
					</tr>
					<!--{/if}-->

					<!--{if $member[bio]}-->
					<tr>
						<th>{lang bio}:</th>
						<td style="word-break:all">$member[bio]</td>
					</tr>
					<!--{/if}-->
				</table>
				<table cellpadding="0" cellpadding="0" class="formtable">
					<!--{if $member[site]}-->
					<tr>
						<th>{lang homepage}:</th>
						<td><a href="$member[site]" target="_blank">$member[site]</a></td>
					</tr>
					<!--{/if}-->
					<!--{if $member['showemail'] && $_G['adminid'] > 0}-->
					<tr>
						<th>Email:</th>
						<td>$member[email]</td>
					</tr>
					<!--{/if}-->
					<!--{if $member['qq']}-->
					<tr>
						<th>QQ:</th>
						<td><a href="http://wpa.qq.com/msgrd?V=1&Uin=$member[qq]&amp;Site=$_G['setting']['bbname']&amp;Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:$member[qq]:4"  border="0" alt="QQ" />$member[qq]</a></td>
					</tr>
					<!--{/if}-->
					<!--{if $member['icq']}-->
					<tr>
						<th>ICQ:</th>
						<td>$member[icq]</td>
					</tr>
					<!--{/if}-->
					<!--{if $member['yahoo']}-->
					<tr>
						<th>Yahoo:</th>
						<td>$member[yahoo]</td>
					</tr>
					<!--{/if}-->
					<!--{if $member['msn']}-->
					<tr>
						<th>MSN:</th>
						<td>$member[msn]</td>
					</tr>
					<!--{/if}-->
					<!--{if $member['taobao']}-->
					<tr>
						<th>{lang taobao}:</th>
						<td><script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid='+encodeURIComponent('$member[taobaoas]')+'&s=2"><img src="http://amos1.taobao.com/online.ww?v=2&uid='+encodeURIComponent('$member[taobaoas]')+'&s=1" alt="{lang taobao}" border="0" /></a>&nbsp;');</script></td>
					</tr>
					<!--{/if}-->
					<!--{if $member['alipay']}-->
					<tr>
						<th>{lang alipay}:</th>
						<td>$member[alipay]</td>
					</tr>
					<!--{/if}-->
					<!--{loop $_G['cache']['forum_fields'] $field}-->
					<tr>
						<th>$field[title]:</th>
						<td>
							<!--{if $field['selective']}-->
								$field['choices'][$member['field_'.$field['fieldid']]]
							<!--{else}-->
								$member['field_'.$field['fieldid']]
							<!--{/if}-->
							&nbsp;
						</td>
					</tr>
					<!--{/loop}-->
				</table>
			</div>
			{hook/profile_baseinfo_bottom}
			<hr class="dashline" />

			<h3 class="blocktitle lightlink">{lang usergroup}: <a href="forum.php?mod=faq&action=grouppermission&searchgroupid={$member[groupid]}" target="_blank">{$member[grouptitle]}</a> {eval showstars($member['groupstars']);} <!--{if $member['maingroupexpiry']}--><em>{lang valid_before} $member[maingroupexpiry]</em><!--{/if}--></h3>
			<!--{if $extgrouplist}-->
			<p>{lang extgroups}:
				<!--{loop $extgrouplist $extgroup}-->
				$extgroup[title]<!--{if $extgroup['expiry']}-->&nbsp;({lang valid_before} $extgroup[expiry])<!--{/if}-->
				<!--{/loop}-->
			</p>
			<!--{/if}-->
			<!--{if $modforums}--><p>{lang moderatorforums}: $modforums</p><!--{/if}-->
			<div class="s_clear">
				<ul class="commonlist right" style="width: 50%">
					<li>{lang regdate}: $member[regdate]</li>
					<li>{lang lastvisit}: <!--{if $member['invisible'] && $_G['adminid'] != 1}-->{lang login_invisible_mode}<!--{else}-->$member[lastvisit]<!--{/if}--></li>
					<li>{lang lastpost}: $member[lastpost]</li>
					<!--{if $_G['uid'] == $member[uid] || $_G['group']['allowviewip']}-->
					<li>{lang regip}: $member[regip] - $member[regiplocation]</li>
					<li>{lang lastip}: $member[lastip] - $member[lastiplocation]</li>
					<!--{/if}-->
				</ul>
				<ul class="commonlist">
					<li>{lang rank}: $member[ranktitle] {eval showstars($member['rankstars']);}</li>
					<li>{lang readperm}: $member[readaccess]</li>
					<li>{lang posts}: $member[posts] {lang piece}({lang post_percent} $percent%)</li>
					<li>{lang posts_per_day}: $postperday {lang piece}</li>
					<li>{lang digestposts}: $member[digestposts] {lang piece}</li>
					<!--{if $_G['setting']['pvfrequence']}--><li>{lang pageviews}: $member[pageviews]</li><!--{/if}-->
				</ul>
			</div>
			<!--{if $_G['setting']['oltimespan']}--><p>{lang onlinetime}: {lang onlinetime_total} <em>$member[totalol]</em> {lang hours}, {lang onlinetime_thismonth} <em>$member[thismonthol]</em> {lang hours} {eval showstars(ceil(($member['totalol'] + 1) / 50));} ({lang onlinetime_upgrade})</p><!--{/if}-->

			<hr class="dashline" />

			<!--{if $member['medals']}-->
				<h3 class="blocktitle lightlink">{lang medals}</h3>
				<!--{loop $member['medals'] $medal}-->
				<img src="static/image/forum/common/$medal[image]" border="0" alt="$medal[name]" title="$medal[name]" /> &nbsp;
				<!--{/loop}-->
				<hr class="dashline" />
			<!--{/if}-->

			<h3 class="blocktitle lightlink">{lang credits}: $member[credits]</h3>
			<p>
				{eval $sp = '';}
				<!--{loop $_G['setting']['extcredits'] $id $credit}-->
					$sp{$credit[img]}$credit[title]: {$member['extcredits'.$id]} $credit[unit]
					{eval $sp = ',&nbsp;';}
				<!--{/loop}-->
			</p>
			<!--{if $_G['setting']['tradeopen']}-->
				<hr class="dashline" />

				<h3 class="blocktitle lightlink">{lang eccredit} <a href="forum.php?mod=eccredit&uid=$member[uid]" style="font-size: 12px; color: #09C;">({lang eccredit_list})</a></h3>
				<p>
					{lang trade_buyer_rate}: $member[sellercredit] <a href="forum.php?mod=eccredit&uid=$member[uid]" target="_blank"><img src="static/image/forum/rank/seller/$member['sellerrank'].gif" border="0" class="absmiddle"></a>
					{lang trade_seller_rate}: $member[buyercredit] <a href="forum.php?mod=eccredit&uid=$member[uid]" target="_blank"><img src="static/image/forum/rank/buyer/$member['buyerrank'].gif" border="0" class="absmiddle"></a>
				</p>
			<!--{/if}-->
			{hook/profile_extrainfo}

			<!--{if $_G['setting']['my_status']}-->
				<style>
					.mynarrow { margin: 5px -10px 5px 10px; padding-top: 8px; width: 200px; border-top: 1px dashed #ccc; }
					.mynarrow h3.lightlink a { text-decoration: none; }
					.with_side .side { width: 220px; }
					.with_side .main { margin-left:-220px; }
					.with_side .content { margin-left:220px; }
				</style>
				<!--{loop $my_list[wide] $value}-->
					<hr class="dashline" />
					<h3 class="blocktitle lightlink"><a href="$value[appurl]&from=space">$value[appname]</a></h3>
					<p>
					<!--{eval eval($value[myml]);}-->
					</p>
				<!--{/loop}-->
			<!--{/if}-->
		</div>
	</div>
	<div class="sd">
		<div class="profile_side">
			<!--{if $_G['setting']['bannedmessages'] & 2 && ($member['groupid'] == 4 || $member['groupid'] == 5)}-->
				<div class="avatar">{lang member_avatar_banned}</div>
			<!--{else}-->
				<div class="avatar">
					{echo discuz_uc_avatar($member[uid])}
				</div>
			<!--{/if}-->
			<ul id="profile_act">
				{hook/profile_side_top}
				<li class="pm"><a href="forum.php?mod=pm&action=new&amp;uid=$member[uid]" id="sendpm" prompt="sendpm" onclick="showWindow('sendpm', this.href)">{lang send_pm}</a></li>
				<li class="buddy"><a href="forum.php?mod=my&item=buddylist&amp;newbuddyid=$member[uid]&amp;buddysubmit=yes" id="addbuddy" prompt="addbuddy" onclick="ajaxmenu(this, 3000);doane(event);">{lang add_to_buddylist}</a></li>
				<!--{if $_G['uid'] && $_G['setting']['magicstatus']}--><li class="magic"><a href="forum.php?mod=magic&action=index&amp;username=$member[usernameenc]" target="_blank">{lang magics_use}</a></li><!--{/if}-->
				<!--{if $_G['setting']['allowviewuserthread']}-->
					<li class="searchthread"><a href="forum.php?mod=my&item=threads&amp;uid=$member[uid]">{lang user_threads}</a></li>
					<li class="searchpost"><a href="forum.php?mod=my&item=posts&amp;uid=$member[uid]">{lang user_posts}</a></li>
				<!--{else}-->
					<li class="searchpost"><a href="forum.php?mod=search&srchuid=$member[uid]&amp;srchfid=all&amp;srchfrom=0&amp;searchsubmit=yes">{lang search_posts}</a></li>
				<!--{/if}-->
				<!--{if $_G['setting']['ucappopen']['UCHOME']}-->
				<li class="space"><a href="{$_G['setting']['uchomeurl']}/home.php?mod=space&uid=$member[uid]" target="_blank">{lang user_space}</a></li>
				<!--{elseif $_G['setting']['ucappopen']['XSPACE']}-->
				<li class="space"><a href="{$xspaceurl}/?uid-$member[uid]" target="_blank">{lang user_space}</a></li>
				<!--{/if}-->
			</ul>
			<!--{if $_G['uid'] && $_G['setting']['magicstatus'] && $usemagic['user']}-->
				<ul>
					<!--{loop $usemagic['user'] $id $magic}-->
						<a href="forum.php?mod=magic&action=mybox&operation=use&amp;type=1&amp;pid=$post[pid]&magicid=$id" onclick="showWindow('magics', this.href)"><img src="static/image/forum/magic/$magic[pic]" title="{lang magics_to_user}"></a>
					<!--{/loop}-->
				</ul>
			<!--{/if}-->
			<!--{if $_G['group']['allowbanuser'] || $_G['group']['allowedituser'] || $member['adminid'] > 0 && $_G['setting']['modworkstatus']}-->
			<ul>
				<!--{if $member['adminid'] > 0 && $_G['setting']['modworkstatus']}--><li><a href="forum.php?mod=stat&type=modworks&amp;uid=$member[uid]"><span>{lang moderations}</span></a></li><!--{/if}-->
				<!--{if $_G['group']['allowbanuser'] || $_G['group']['allowedituser']}-->
					<li>{lang admin_member}</li>
					<li>
						<!--{if $_G['group']['allowbanuser']}--><a href="{if $_G['adminid']==1}admin.php?mod=forum&action=members&operation=ban&username=$member[usernameenc]&frames=yes{else}forum.php?mod=modcp&action=members&amp;op=ban&amp;uid=$member[uid]{/if}" target="_blank"><span>{lang ban_member}</span></a>&nbsp;<!--{/if}-->
						<!--{if $_G['group']['allowedituser']}--><a href="{if $_G['adminid'] == 1}admin.php?mod=forum&action=members&amp;username=$member[usernameenc]&amp;submit=yes&frames=yes{else}forum.php?mod=modcp&action=members&amp;op=edit&amp;uid=$member[uid]{/if}" target="_blank"><span>{lang edit}</span></a>&nbsp;<!--{/if}-->
						<a href="forum.php?mod=modcp&action=threads&op=posts&do=search&searchsubmit=1&users=$member[usernameenc]" target="_blank">{lang posts}</a>
					</li>
				<!--{/if}-->
			</ul>
			<!--{/if}-->
			<!--{if $_G['setting']['my_status']}-->
				<!--{if $my_list[guide]}-->
					<ul>
					<!--{loop $my_list[guide] $value}-->
						<li style="background-image: url(http://appicon.manyou.com/icons/$value[appid])"><!--{eval eval($value[profilelink]);}--></li>
					<!--{/loop}-->
					</ul>
				<!--{/if}-->

				<!--{loop $my_list[narrow] $value}-->
					<div class="mynarrow">
					<h3 class="blocktitle lightlink"><a href="$value[appurl]&from=space">$value[appname]</a></h3>
					<!--{eval eval($value[myml]);}-->
					</div>
				<!--{/loop}-->
			<!--{/if}-->
		</div>
		{hook/profile_side_bottom}
	</div>

{subtemplate common/footer}